package com.library.books.domain.vo.borrow;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.library.books.domain.Student;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Package: com.library.books.domain.vo.borrow
 * @ClassName: StudentBorrow
 * @Author: Yin
 * @Date: 10:12
 * @Description: 学生借阅信息
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class StudentBorrowVo extends Student {

    /** 单次借阅中最大借出数量 */
    private Long lendOnlyMaxNum;

    /** 借阅书籍数量 */
    private Long lendCount;

    /** 逾期书籍数量 */
    private Long overdueCount;

    /** 是否有逾期书籍 */
    @JsonProperty("isOverdue")
    private boolean isOverdue;

}
